package com.a01_2021.thousandstimes.instance.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.instance.entity.Report;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-10
 */
public interface IReportService extends IService<Report> {

    HashMap<String, Object> addReport(long userId, String reportDescription, String reportTheme, String reportContent, ArrayList<String> attachment) throws CustomException;

    HashMap<String, Object> getReport(long userId, long reportId) throws CustomException;

    HashMap<String, Object> getReportFromUser(long userId, long reportId) throws CustomException;

    List<Report> getReports(long userId) throws CustomException;

    Report updateReport(long userId, long reportId, String reportDescription, String reportTheme, String reportContent) throws CustomException;
}
